package com.gzsxy.esjy.configuration;


import com.gzsxy.esjy.extraldecoder.IBusinessDecoder;

import java.util.ArrayList;
import java.util.List;

/**
 * 业务处理解码
 * @author zhangxiaolong
 * @date 2022/7/6 9:36
 */
@SuppressWarnings("rawtypes")
public class NettyServerConfig {

	private List<IBusinessDecoder> decoders ;

	public List<IBusinessDecoder> decoders() {
		if(decoders == null) {
			decoders = new ArrayList<IBusinessDecoder>() ;
		}
		return decoders;
	}
	
	public void addDecoder(IBusinessDecoder<?> decoder) {
		if(decoders == null) {
			decoders = new ArrayList<IBusinessDecoder>() ;
		}
		decoders.add(decoder) ;
	}

	public void setDecoders(List<IBusinessDecoder> decoders) {
		this.decoders = decoders;
	}
	
	
}
